Skip to content

chore: fixing eslint configuration #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

georgewrmarshall
Copy link
Contributor

Description

TBC but TLDR is fixing eslint configuration to catch missing linting errors and align with core

Related issues

Fixes: #629

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I've followed MetaMask Contributor Docs
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@georgewrmarshall georgewrmarshall force-pushed the fix/eslint branch 5 times, most recently from 98046cd to 5731708 Compare May 12, 2025 06:27
Comment on lines +39 to +41
- name: Setup
# The Tailwind Prettier plugin requires the Tailwind preset to be built, as the plugin depends on the configuration provided by the preset for linting to function correctly.
run: yarn workspace @metamask/design-system-tailwind-preset build
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall May 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update to our linting step is required for ensuring that the Tailwind Prettier plugin operates correctly. By running yarn workspace @metamask/design-system-tailwind-preset build, we ensure that the Tailwind preset is built and its configuration is available. Without this step, the Tailwind Prettier plugin would fail to lint properly since it relies on the preset's configuration to validate styles accurately.

Without this update our CI will fail at the linting step. yarn lint will also fail locally if the tailwind preset is not built.

Screenshot 2025-05-12 at 4 03 40 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix eslint configuration
1 participant